package xyz.sunne.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;


/**
 * @author Sunne
 * @version 1.0
 * @date 2021/9/24 0024
 */
@Data
public class BaseEntity implements Serializable {
    @TableId
    private String id;

    private Date created = new Date();

    private String remake;
    /**
     * 默认可用状态，可用状态为1，不可用为0
     */
    @NotEmpty()
    private String state = "1";
}
